package com.shigu.agent.processes;

import com.shigu.agent.exceptions.YeepayException;
import com.shigu.passageway.exceptions.PassagewayException;

/**
 * 商户服务
 */
public interface BusinessProcess {
    /**
     * 创建商户账号
     * @param telephone
     * @param password
     * @param fromId
     * @return
     */
    Long createBusinessman(String oemTag,String telephone,String password,Long fromId);

    /**
     * 记录一下用户选择了省份
     * @param userId 用户ID
     * @param provId 省ID
     */
    void useProvRecord(Long userId,Long provId);

    /**
     * 实名认证
     * @param idCard
     * @param realName
     * @param cashCard
     * @param bank
     * @param location
     * @param areaId
     * @return 1为create，2为update，3为其它
     */
    int realCheck(Long userId,String idCard,String realName,String cashCard,String bank,String location,Long areaId,String telephone) throws PassagewayException;
    int modifyRealCheck(Long userId,String idCard,String realName,String cashCard,String bank,String location,Long areaId,String telephone) throws PassagewayException;
}
